package com.lw;

/**
 * StaticValue类中obstacle集合下标对应的图片
 */
public enum ObstacleType {
    BRICK(0, "brick.png"),
    BRICK2(1, "brick2.png"),
    FLAG(2, "flag.png"),
    SOIL_UPPER(3, "soil_up.png"),
    SOIL_BASE(4, "soil_base.png"),
    PIPE1(5, "pipe1.png"),
    PIPE2(6, "pipe2.png"),
    PIPE3(7, "pipe3.png"),
    PIPE4(8, "pipe4.png");

    private final int index;
    private final String imageName;

    ObstacleType(int index, String imageName) {
        this.index = index;
        this.imageName = imageName;
    }

    public int getIndex() {
        return index;
    }

    public String getImageName() {
        return imageName;
    }
}
